﻿function c(me,showTyle)
{
	if(showTyle==0)
	{
		me.style.backgroundColor='#EFF7F0';
	}
	else{
		me.style.backgroundColor='#ffffee';
	}
}
/*书的列表*/
function bookList(bookid,bookname,writer,lastchapter,updatetime,views)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td><input name=\"checkbox\" type=\"checkbox\" value="+bookid+" /></td><td><a href=\"/BookInfo.aspx?BookID="+bookid+"\">"+bookname+"</a></td><td>"+writer+"</td><td><a href=\"/BookDetail.aspx?BookID="+bookid+"\">"+lastchapter+"</a></td><td >"+updatetime+"</td><td>"+views+"</td></tr>");
}
/* 书籍最新更新列表 */
function bookListNew(bookid,bookname,writer,lastchapter,updatetime)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td><input name=\"checkbox\" type=\"checkbox\" value="+bookid+" /></td><td><a href=\"/BookInfo.aspx?BookID="+bookid+"\">"+bookname+"</a></td><td>"+writer+"</td><td><a href=\"/BookDetail.aspx?BookID="+bookid+"\">"+lastchapter+"</a></td><td >"+updatetime+"</td></tr>");
}
/*目录列表*/
function sList(sitename,bookname,siteurl,username,health)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td>"+sitename+"</td><td><a href=\"/PageClear.aspx?pagename="+siteurl+"\">"+siteurl+"</a></td><td>"+username+"</td><td>"+health+"</td><td><a href='"+siteurl+"'>源地址</a></td></tr>");
}
/*排行列表*/
function List(bookid,bookname,orders,booktype)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td>"+orders+"</td><td>"+booktype+"</td><td><a href=\"/BookInfo.aspx?BookID="+bookid+"\">"+bookname+"</a></td></tr>");
}
/*搜索书籍结果*/
function searchList(bookid,bookname,writer,state,booktype,lastchapter,views)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td><input name=\"checkbox\" type=\"checkbox\" value="+bookid+" /></td><td>"+state+"</td><td>"+booktype+"</td><td><a href=\"/BookInfo.aspx?BookID="+bookid+"\">"+bookname+"</a></td><td>"+writer+"</td><td><a href=\"/BookDetail.aspx?BookID="+bookid+"\">"+lastchapter+"</a></td><td >"+views+"</td></tr>");

}
/*最新章节列表*/
function chapterList(url,title,siteid,bookid,sitename,time)
{
	document.write("<tr onmouseout=\"c(this,0);\" onmouseover=\"c(this,1);\"><td class='left'><a href='/PageClear.aspx?pagename="+url+"'>"+title+"</a></td><td>"+sitename+"</td><td><a <a href='"+url+"'>源地址</a></td><td>"+time+"</td></tr>");

}